package com.h3c.nem.mapstruct;

import com.h3c.nem.entity.TbSchool;
import com.h3c.nem.vo.TbSchoolVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/6/20 9:19
 */
@Mapper
public interface TbSchoolMapstruct {
    TbSchoolMapstruct INSTANCE = Mappers.getMapper(TbSchoolMapstruct.class);

    /**
     * entity列表转VO列表
     * @param schools
     * @return
     */
    List<TbSchoolVO> entityListToVOList(List<TbSchool> schools);
}
